package rmi.tests.client;

import java.rmi.NotBoundException;
import java.rmi.RemoteException;
import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

import rmi.tests.Inter;

public class Client {

	/**
	 * @param args
	 * @throws RemoteException 
	 * @throws NotBoundException 
	 */
	public static void main(String[] args) throws RemoteException, NotBoundException {
		Registry reg = LocateRegistry.getRegistry("127.0.1.1",
				1099);

		Inter inter = (Inter) reg.lookup("Inter");
		System.out.println(inter.funktion("Super"));
	}

}
